package com.omega.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

@Entity
@Table(name = "RMS_RETAILER")
public class Retailer extends AbstractEntity implements Serializable {

	private static final long serialVersionUID = 1L;
	
	@Id
	@Column(name = "RETAILER_ID")
	@TableGenerator(table = "PORTAL_TABLE_GENERATOR", name = "TABLE_SEQ_GENERATOR", pkColumnValue = "RETAILER_ID",allocationSize = 1, initialValue = 1)
	@GeneratedValue(strategy = GenerationType.TABLE, generator = "TABLE_SEQ_GENERATOR")
	private long retailerId;

	@Column(name = "TIN_NUM", nullable = true, length = 20)
	private String tinNumber;

	@Column(name = "RETAILER_NAME", nullable = false, length = 100)
	private String retailerName;

	@Column(name = "RETAILER_ADDRESS", nullable = true, length = 100)
	private String retailerAddress;

	@Column(name = "RETAILER_EMAIL_ID", nullable = true, length = 100)
	private String retailerEmailId;

	@Column(name = "RETAILER_PHONE_NUM", nullable = true, length = 20)
	private String retailerPhoneNumber;

	@Column(name = "RETAILER_MOBILE_NUM", nullable = true, length = 15)
	private String retailerMobileNumber;

	@Column(name = "RETAILER_ACTIVE_FLAG", nullable = false, length = 1)
	private String retailerActive;



	public String getTinNumber() {
		return tinNumber;
	}

	public void setTinNumber(String tinNumber) {
		this.tinNumber = tinNumber;
	}

	public String getretailerName() {
		return retailerName;
	}

	public void setretailerName(String retailerName) {
		this.retailerName = retailerName;
	}

	public String getretailerAddress() {
		return retailerAddress;
	}

	public void setretailerAddress(String retailerAddress) {
		this.retailerAddress = retailerAddress;
	}

	public String getretailerEmailId() {
		return retailerEmailId;
	}

	public void setretailerEmailId(String retailerEmailId) {
		this.retailerEmailId = retailerEmailId;
	}

	public String getretailerPhoneNumber() {
		return retailerPhoneNumber;
	}

	public void setretailerPhoneNumber(String retailerPhoneNumber) {
		this.retailerPhoneNumber = retailerPhoneNumber;
	}

	public String getretailerMobileNumber() {
		return retailerMobileNumber;
	}

	public void setretailerMobileNumber(String retailerMobileNumber) {
		this.retailerMobileNumber = retailerMobileNumber;
	}

	public String getretailerActive() {
		return retailerActive;
	}

	public void setretailerActive(String retailerActive) {
		this.retailerActive = retailerActive;
	}

	public int getMonth() {
		return month;
	}

	public void setMonth(int month) {
		this.month = month;
	}

	public int getYear() {
		return year;
	}

	public void setYear(int year) {
		this.year = year;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Column(name = "MONTH", nullable = false, length = 2)
	private int month;

	@Column(name = "YEAR", nullable = false, length = 4)
	private int year;



	/**
	 * @return the retailerId
	 */
	public long getRetailerId() {
		return retailerId;
	}

	/**
	 * @param retailerId the retailerId to set
	 */
	public void setRetailerId(long retailerId) {
		this.retailerId = retailerId;
	}

}
